 /*
  * Powered By zsCat, Since 2014 - 2020
  */
package com.zscat.goods.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import com.alibaba.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

import com.zscat.common.base.ServiceMybatis;
import com.zscat.goods.mapper.CartMapper;
import com.zscat.goods.model.Cart;
import com.zscat.goods.service.CartService;

/**
 * 
 * @author zsCat 2017-4-14 13:56:18
 * @Email: 951449465@qq.com
 * @version 4.0v
 */
@Component
@DubboService(interfaceClass = CartService.class,timeout =6000 )
public class CartServiceImpl extends ServiceMybatis<Cart> implements CartService {
	@Resource
	private CartMapper CartMapper;

	    @Override
		public List<Cart> selectOwnCart(Long id) {
				Cart cart=new Cart();
				cart.setUserid(id);
				return CartMapper.select(cart);
		}
		@Override
		public int selectOwnCartCount(Long id) {
				Cart cart=new Cart();
				cart.setUserid(id);
				return CartMapper.selectCount(cart);
			
		}

  
    
}
